<template>
  <div>
    <!-- 头部 -->
    <source-manage-header :innerMenu="innerMenu" />
    <!-- 表格 -->
    <source-manage-tabel :innerMenu="innerMenu" />
    <!-- 源头企业详情对话框 -->
    <source-manage-detail />
    <!-- 修改源头企业对话框 -->
    <source-manage-alter-source />
    <!-- 添加源头企业对话框 -->
    <source-manage-add-source />
    <!-- 删除企业对话框 -->
    <source-manage-delete-source />
    <tmap />
  </div>
</template>

<script>
import sourceManageHeader from './cpns/source_manage_header.vue'
import sourceManageTabel from './cpns/source_manage_tabel.vue'
import sourceManageDetail from './cpns/source_manage_detail.vue'
import sourceManageAlterSource from './cpns/sorece_manage_alterSource.vue'
import sourceManageAddSource from './cpns/source_manage_addSource.vue'
import sourceManageDeleteSource from './cpns/source_manage_deleteSource.vue'
import Tmap from '@/components/TMap/TMap.vue'
import { getCacheInnerMenu } from '@/utils/menu'

export default {
  components: {
    sourceManageHeader,
    sourceManageTabel,
    sourceManageDetail,
    sourceManageAlterSource,
    sourceManageAddSource,
    sourceManageDeleteSource,
    Tmap
  },
  data() {
    return {
      innerMenu: {}
    }
  },
  created() {
    this.innerMenu = getCacheInnerMenu(this.$route.meta.id);
    // console.log('公司管理权限', this.innerMenu)
  }
}
</script>

<style scoped></style>
